package com.youme.model.param

import com.google.gson.Gson
import com.google.gson.annotations.SerializedName
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody

/**
 * Time:3/20/21 4:31 PM
 * Author:
 * Description:
 */
class ParamAddFood(
    @SerializedName("deskId") val deskId    : String,
    @SerializedName("productId") val productId: String,
    @SerializedName("productQuantity") val productQuantity: Int
) {
    fun toBody(): RequestBody = RequestBody.create("application/json".toMediaType(), Gson().toJson(this))
}